package net.qhzw.admin.mapper;

import net.qhzw.admin.entity.SysMechanism;
import net.qhzw.admin.pojo.SysMechanismVo;
import net.qhzw.admin.query.MechanismQuery;

import java.util.List;

public interface SysMechanismMapper {

    int deleteByPrimaryKey(String id);

    int insert(SysMechanism record);

    int insertSelective(SysMechanism record);

    SysMechanism selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysMechanism record);

    int updateByPrimaryKey(SysMechanism record);


    /***
     * 根据id查询机构信息
     * @param id
     * @return
     */
    SysMechanismVo selectMechanism(String id);


    /***
     * 查询机构信息列表
     * @param query
     * @return
     */
    List<SysMechanismVo> selectMechanismList(MechanismQuery query);
}
